package com.csap.framework.oauth2.exception;

import com.csap.framework.oauth2.type.ExceptionType;

/**
 * 用户没有权限
 *
 * @Author ycf
 * @Date 2021/8/19 6:27 下午
 * @Version 1.0
 */
public class UserDeniedAuthorizationException extends Oauth2Exception {
    public UserDeniedAuthorizationException(String msg, Throwable t) {
        super(msg, t);
    }

    public UserDeniedAuthorizationException() {
        super(ExceptionType.access_denied.getMessage());
    }

    @Override
    public ExceptionType exceptionType() {
        return ExceptionType.access_denied;
    }
}
